from flask import Flask


def create_app():
    app = Flask(__name__)

    # 注册蓝图
    from .routes import register_blueprints
    register_blueprints(app)

    return app
